projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
168c1f4
)
Fix treelistmodel tests
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 4 Dec 2019 23:30:37 +0000
(18:30 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 4 Dec 2019 23:30:37 +0000
(18:30 -0500)
They were failing to return a reference where they
need to. This was uncovered by fixing an unrelated
ref leak.
testsuite/gtk/treelistmodel.c
patch
|
blob
|
history
diff --git
a/testsuite/gtk/treelistmodel.c
b/testsuite/gtk/treelistmodel.c
index 3a0d6df674827df9ca6eba7bc9ebfa95f1a016c1..75dbcd41fafc0ae120f64b559a5e38ea87197e12 100644
(file)
--- a/
testsuite/gtk/treelistmodel.c
+++ b/
testsuite/gtk/treelistmodel.c
@@
-158,7
+158,7
@@
create_sub_model_cb (gpointer item,
gpointer unused)
{
if (G_IS_LIST_MODEL (item))
- return
item
;
+ return
g_object_ref (item)
;
return NULL;
}